package com.sinosoft.tcmneim.service.impl;

import com.sinosoft.tcmneim.dao.TblBasicinformationDao;
import com.sinosoft.tcmneim.dataObject.TblBasicinformation;
import com.sinosoft.tcmneim.service.TblBasicinformationService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TblBasicinformationServiceImpl implements TblBasicinformationService {
    @Resource
    private TblBasicinformationDao tblBasicinformationDao;

    @Override
    public List<TblBasicinformation> list() {
        return tblBasicinformationDao.list();
    }

    @Override
    public List<TblBasicinformation> selectByItemCode(String itemCode) {
        return tblBasicinformationDao.selectByItemCode(itemCode);
    }

    @Override
    public int insertTblBasicinformation(TblBasicinformation tblBasicinformation) {
        return tblBasicinformationDao.insertTblBasicinformation(tblBasicinformation);
    }

    @Override
    public int updated(TblBasicinformation tblBasicinformation) {
        return tblBasicinformationDao.updated(tblBasicinformation);
    }

    @Override
    public int deleteByItemCode(String itemCode) {
        return tblBasicinformationDao.deleteByItemCode(itemCode);
    }
}
